﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasks.Common.Enum;

namespace Tasks.Common.Entitys
{
    /// <summary><c>Shop</c> Business Object.</summary>
    [Serializable]
    public partial class Shop
    {

        #region ShopID

        public int ShopID { get; set; }

        #endregion

        #region Name

        private String m_name;

        /// <summary>Gets or sets Name</summary>
        public String Name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        #endregion

        #region UnitPrice

        private Decimal m_unitPrice;

        /// <summary>Gets or sets UnitPrice</summary>
        public Decimal UnitPrice
        {
            get { return m_unitPrice; }
            set { m_unitPrice = value; }
        }

        #endregion

        #region CommissionRate

        private Decimal m_commissionRate;

        /// <summary>Gets or sets CommissionRate</summary>
        public Decimal CommissionRate
        {
            get { return m_commissionRate; }
            set { m_commissionRate = value; }
        }

        #endregion

        #region Remark

        private String m_remark;

        /// <summary>Gets or sets Remark</summary>
        public String Remark
        {
            get { return m_remark; }
            set { m_remark = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        #endregion
        public int ShopType { get; set; }
        /// <summary>
        /// 购物店类型名称
        /// </summary>
        public string ShopTypeName { get; set; }

        public int OwnerID { get; set; }
        public int UserProfileID { get; set; }
        public int PaymentMode { get; set; }
        private string _PaymentModeToStr;
        public string PaymentModeToStr
        {
            get
            {
                return CommonUtil.GetEnumDescription(typeof(EnterprisePaymentMode), this.PaymentMode);
            }
            set
            {
                _PaymentModeToStr = value;

            }
        }

        /// <summary>
        /// 联系方式
        /// </summary>
        #region Contact

        private ContactInfo m_Contact;

        /// <summary>Gets or sets ParentID</summary>
        public ContactInfo Contact
        {
            get
            {
                if (m_Contact == null)
                {
                    m_Contact = new ContactInfo();
                }
                return m_Contact;
            }
            set { m_Contact = value; }
        }

        #endregion

    }
}
